package org.xmdl.silk.interpreter;

import org.xmdl.silk.Variable;

public class UndefinedVariableException extends RuntimeException {

	/** serial id */
	private static final long serialVersionUID = -3160105925816924497L;
	
	private final Variable variable;

	public UndefinedVariableException(Variable variable) {
		super(variable.getName() + " is not defined");
		this.variable = variable;
	}

	public Variable getVariable() {
		return variable;
	}
}
